﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI;

namespace DMS.Business.WebControls
{
    [ToolboxData("<{0}:TreeViewPlus runat=server></{0}:TreeViewPlus>")]
    public class TreeViewPlus : TreeView
    {
        protected string _ContextMenu = string.Empty;
        protected TreeNodeTypes _ShowContextMenu = TreeNodeTypes.All;
        /// <summary>
        /// 菜单控件ID
        /// </summary>
        public string ContextMenu
        {
            get
            {
                return this._ContextMenu;
            }
            set
            {
                this._ContextMenu = value;
            }
        }

        public TreeNodeTypes ShowContextMenu
        {
            get
            {
                return this._ShowContextMenu;
            }
            set
            {
                this._ShowContextMenu = value;
            }
        }


        public TreeNodePlus CreateNodePlus()
        {
            TreeNodePlus node = new TreeNodePlus(this);
            return node;
        }
    }
}